import QtQuick 2.0
import QtQuick.Controls 2.12

Item {
    property alias txt: label.text
    property alias inputTxt: combo.displayText
    property alias modelBox: combo.model
    id: inputBox
    // 默认大小
    width: 250
    height: 30
    Text {
        id: label
        width: inputBox.width * 0.3
        anchors.right: inputBox.left
        color: "white"
        font {
            family: "Microsoft YaHei"
            pixelSize: 20
        }
        horizontalAlignment: Text.AlignRight
        text: "Label："
    }
    ComboBox {
        id: combo
        width: inputBox.width * 0.7
        height: inputBox.height
        anchors.fill: parent
    }
}
